package net.dfrz.oa.dao.repository;

import java.util.Date;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import net.dfrz.oa.dao.repository.support.BaseRepository;
import net.dfrz.oa.pojo.WorkLog;

public interface WorkLogRepository extends BaseRepository<WorkLog>{

	@Modifying
	@Query("UPDATE WorkLog w SET w.title =:title,w.log=:log,w.date=:date WHERE w.id=:id")
	void updateWorkLog(@Param("id")Integer worklogId, @Param("title")String title, @Param("log")String log, @Param("date")Date date);

}
